#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: delay_functions.py
@date: 2025-07-23 16:10
@author: Falling Snow
@desc: 可复用的 delay 函数
"""

import asyncio

from util import async_timed


@async_timed()
async def delay(delay_second: int) -> int:
    print(f"睡眠 {delay_second} 秒")
    await asyncio.sleep(delay_second)
    print(f"睡眠 {delay_second} 秒 已完成")
    return delay_second
